package com.baizhi.app;


import com.baizhi.dao.GuruDAO;
import com.baizhi.entity.Banner;
import com.baizhi.entity.Guru;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("app/guru")
public class AppGuruController {

    @Autowired
    private GuruDAO guruDAO;
    @GetMapping("selectAll")
    public List<Guru> selectAll(){
        List<Guru> list = guruDAO.selectAll();
        return list;
    }
}
